From adfb6cc3c048f4580e4925fcbcf32ef2565972e4 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 6 Mar 2009 18:55:05 +0000 Subject: [PATCH] Panic rather than BUG if an error is encountered decompressing a bzImage This gives a more useful error message without an unnecessary stack dump. Noticed by Jeremy Fitzhardinge. Signed-off-by: Ian Campbell --- xen/arch/x86/bzimage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/arch/x86/bzimage.c b/xen/arch/x86/bzimage.c index 37bc78eec2..4843677916 100644 --- a/xen/arch/x86/bzimage.c +++ b/xen/arch/x86/bzimage.c @@ -58,8 +58,7 @@ static void flush_window(void); static __init void error(char *x) { - printk("%s\n", x); - BUG(); + panic("%s\n", x); } static __init int fill_inbuf(void) -- 2.30.2